package com.taijihuabao.modules.model.checkin.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

/**
 * 考勤导出模型
 *
 * @author changhui.tu
 */
@Data
@ContentRowHeight(25)
@HeadRowHeight(20)
@ColumnWidth(23)
@ApiModel("考勤导出模型")
public class CheckInExportVO {

    /**
     * 考勤日期
     */
    @ExcelProperty(value = "考勤日期", index = 0)
    private String dateTime;

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "用户姓名", index = 1)
    private String userName;

    /**
     * 部门名
     */
    @ExcelProperty(value = "所在部门", index = 2)
    private String deptName;

    /**
     * 打卡时间
     */
    @ExcelProperty(value = "打卡时间", index = 3)
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private Date clockTime;

    /**
     * 打卡地址
     */
    @ExcelProperty(value = "打卡地址", index = 4)
    @ColumnWidth(55)
    private String address;

    /**
     * 打卡类型
     */
    @ExcelProperty(value = "打卡类型", index = 5)
    private String clockType;

    /**
     * 打卡状态
     */
    @ExcelProperty(value = "打卡状态", index = 6)
    private String clockState;

    /**
     * 删除标志
     */
    @ExcelProperty(value = "更新标志", index = 7)
    private String deleteMark;

}
